---
title: Setup infra for new users
sidebarTitle: "Add New Users"
---

Follow these steps to setup an existing infra:

<Steps>

<Step title="Clone git repository">
Clone the git repo and `cd` into the infra directory

<CodeGroup>

```bash Mac
git clone https://github.com/[YOUR_GIT_REPO].git

cd your_infra_directory
```

```bash Windows
git clone https://github.com/[YOUR_GIT_REPO].git

cd your_infra_directory
```

</CodeGroup>

</Step>
<Step title="Create and activate a virtual environment">

<CodeGroup>

```bash Mac
python3 -m venv aienv
source aienv/bin/activate
```

```bash Windows
python3 -m venv aienv
aienv/scripts/activate
```

</CodeGroup>

</Step>
<Step title="Install agno">

<CodeGroup>

```bash Mac
pip install -U agno
```

```bash Windows
pip install -U agno
```

</CodeGroup>

</Step>
<Step title="Copy secrets">

Copy `infra/example_secrets` to `infra/secrets`

<CodeGroup>

```bash Mac
cp -r infra/example_secrets infra/secrets
```

```bash Windows
cp -r infra/example_secrets infra/secrets
```

</CodeGroup>

</Step>
<Step title="Start infra">

<Note>

Install [docker desktop](https://docs.docker.com/desktop/install/mac-install/) if needed.

</Note>

<CodeGroup>

```bash terminal
ag infra up
```

```bash full options
ag infra up --env dev --infra docker
```

```bash shorthand
ag infra up dev:docker
```

</CodeGroup>

</Step>
<Step title="Stop infra">

<CodeGroup>

```bash terminal
ag infra down
```

```bash full options
ag infra down --env dev --infra docker
```

```bash shorthand
ag infra down dev:docker
```

</CodeGroup>

</Step>

</Steps>
